package cn.hdu.liang.core.dao.country;

import cn.hdu.liang.core.bean.country.Province;
import cn.hdu.liang.core.query.country.ProvinceQuery;

import java.util.List;


public interface ProvinceDao {

    //添加
    public Integer addProvince(Province province);

    //根据主键查找
    public Province getProvinceByKey(Integer id);

    //根据主键批量查找
    public List<Province> getProvincesByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateProvinceByKey(Province province);

    //分页查询
    public List<Province> getProvinceListWithPage(ProvinceQuery provinceQuery);

    //集合查询
    public List<Province> getProvinceList(ProvinceQuery provinceQuery);

    //总条数
    public int getProvinceListCount(ProvinceQuery provinceQuery);
}
